# 68/100 二分查找-寻找两个正序数组的中位数
# leetcode第4题: https://leetcode.cn/problems/median-of-two-sorted-arrays/description/?envType=study-plan-v2&envId=top-100-liked
from leetcode import test


def findMedianSortedArrays(nums1: list[int], nums2: list[int]) -> float:
    pass


if __name__ == '__main__':
    inp = [{"nums": [5, 7, 7, 8, 8, 10], "target": 8},
           {"nums": [5, 7, 7, 8, 8, 10], "target": 7},
           {"nums": [5, 7, 7, 8, 8, 10], "target": 6},
           {"nums": [1], "target": 1},
           {"nums": [2, 2], "target": 2},
           {"nums": [2, 2, 2, 2, 2, 2], "target": 2},
           {"nums": [], "target": 0},
           ]
    out = [[3, 4], [1, 2], [-1, -1], [0, 0], [0, 1], [0, 5], [-1, -1]]
    test.test_function(findMedianSortedArrays, inp, out)
